module.exports =  function(api) {
  api.cache(true)
  return {
    presets: ['module:metro-react-native-babel-preset'],
    plugins: [
      [
        'module-resolver',
        {
          root: ['./app'],
          extensions: ['.ios.js', '.android.js', '.js', 'jsx', '.es', '.es6','.ts', '.tsx', '.json'],
          alias: {
            '@': './app',
            '@com': './app/components',
            '@p': './app/pages'
          },
        }
      ],
    ],
  }
}
